<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" pageEncoding="UTF-8"%>
<%@page import="com.ys.malini.util.PagerContext"%>

<%@ include file="include/taglibs.jsp" %>
<%
	session.setAttribute("ctx",request.getContextPath());
%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>MALINI</title>
<!--css-->
<link href="<%=request.getContextPath()%>/css/main_index.css" rel="stylesheet" type="text/css" media="all" />
<!--jquery 1.3.1-->
<script type="text/javascript" src="<%=request.getContextPath()%>/js/jquery-1.3.1.min.js"></script>
<script type='text/javascript' src='<%=request.getContextPath()%>/js/jfade.js'></script>

<!--导航-->
<script type="text/javascript" src="<%=request.getContextPath()%>/js/ddaccordion.js"></script>
<!--导航幻灯片初始.导航点击效果-->
<script type="text/javascript" src="<%=request.getContextPath()%>/js/meunlb.js"></script>
<!--导航幻灯片点击切换效果-->
<script type="text/javascript">
<!--
$(document).ready(function(){
		$("#test_image a").jfade();
		
	$("#test_image a").bind("click", function(){
		$("#test_image a").each(function(){
			$(this).css("border","2px solid #0f0e0c");
		})
  		$(this).css("border","2px solid #2e2e2e"); 
	});
$("#test_image img").bind("click", function(){
		
  		var test_image = $(this).attr("name");
  		var paras = $(this).attr("id");
  		var base='<%=session.getAttribute("ctx")%>';
		$("#test_").html("<div class=\"pro_pic\"><img src='"+test_image+"' onmouseover=\"ddaccordion.collapseall('menuheaders');return false\"/><a href='"+base+"/productNewAction.do?op=findNewProductById"+paras+"' class=\"pic_more\"><font color=\"#ffffff\">点击购买>></font></a></div>");
	});  
})
-->
</script>
</head>
<body >
<div class="main_cont">
<%@ include file="top.jsp" %>
<div class="main_contain">
<div class="main_l">
<a href="#"><img src="<%=session.getAttribute("ctx")%>/images/main_logo.gif" /></a>
<%@ include file="menu.jsp" %>
<%@ include file="bottom.jsp" %>
</div>
<div class="main_r" id="test_"   onmouseover="ddaccordion.collapseall('menuheaders');return false;" >  

<div class="product">
<ul>

	<logic:present name="productlist" scope="request">		
	
				<logic:iterate id="data" name="productlist" scope="request" indexId="proindex" type="com.ys.malini.web.form.ProductForm">
					
					<c:if test="${proindex==0||proindex%5==0}">
					
							<li><a href="<%=session.getAttribute("ctx")%>/productAction.do?op=findAllProductById&pid=${data.productId}&series=${data.series}"><img src="<%=session.getAttribute("ctx")%>/${data.bigimages}" /></a>
							<span><a href="<%=session.getAttribute("ctx")%>/productAction.do?op=findAllProductById&pid=${data.productId}&series=${data.series}">${data.productName}</a><br /></span>
							</li>
					
					</c:if>
					<c:if test="${proindex%5!=0}">
				
							<li><a href="<%=session.getAttribute("ctx")%>/productAction.do?op=findAllProductById&pid=${data.productId}&series=${data.series}"><img src="<%=session.getAttribute("ctx")%>/${data.bigimages}" /></a>
							<span><a href="<%=session.getAttribute("ctx")%>/productAction.do?op=findAllProductById&pid=${data.productId}&series=${data.series}">${data.productName}</a><br /></span>
							</li>
					  
					</c:if>
				</logic:iterate>
		<div class="page">
		<TABLE width="100%">
				<TBODY>
					<TR class="list_hd">
						<TD height=28 align=right vAlign="middle" noWrap >
						总页数:<%=com.ys.malini.util.PagerContext.getTotal()/com.ys.malini.util.PagerContext.getPagesize()+1%>
							&nbsp;&nbsp;					
							<pg:pager url="./productAction.do"							
								items="<%=PagerContext.getTotal()%>"							
								maxPageItems="<%=PagerContext.MAX_PAGE_SIZE%>"
								export="currentPageNumber=pageNumber" scope="request">
								<pg:param name="op" value="findAllProducts"/>
								<pg:param name="b" value="C033"/>
								<pg:param name="m" value="C03"/>
								<pg:param name="s" value="1"/>
								<%@include file="/pages/include/pager.jsp"%>
							</pg:pager>						
							
							</TD>
					</TR>
				</TBODY>
			</TABLE>
			
			</div>
		</logic:present>
		
	<ul>		

</div>

</div>
</div>

</div>

</body>
</html>
